const mongoose = require('mongoose');

const Schena = mongoose.Schema;

const categorySchema = new Schena({
  ID: {
    unique: true,
    type: String
  },
  MALL_CATEGORY_NAME: {
    type: String
  },
  IMAGE: {
    type: String
  },
  TYPE: {
    type: Number
  },
  SORT: {
    type: Number
  },
  COMMENTS: {
    type: String
  },
})
// 发布模型
mongoose.model('Category', categorySchema);
